<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/common/common.jsp"%>
<%@ include file="/WEB-INF/common/taglib.jsp"%>
<!DOCTYPE html>
<html lang="en">
<body style='overflow:scroll;overflow-x:hidden'>
	<div class="container" style="width:98%;padding:8px;">
		<div class="row">
			<div class="panel panel-default">
				<div class="panel-heading">
					<c:choose>
						<c:when test="${empty  sysRole.id}">新增</c:when>
				 		<c:otherwise>修改</c:otherwise>
	  				</c:choose>
				</div>
					<div class="panel-body">
						<form class="form-horizontal" role="form" id="dailogForm" action="<%=path%>/system/sysRole/doMerge.do" method="POST">
								<input type="hidden" value="${sysRole.id}" name="id" />
							<div class="form-group">
						    	<label for="roleCode" class="col-sm-2 control-label" style="text-align:left;">角色编码</label>
						    	<div class="col-sm-8">
								      <input type="text" value="${sysRole.roleCode}" name="roleCode" id="roleCode" class="form-control"/>
						    	</div>
							</div>
							<div class="form-group">
						    	<label for="roleName" class="col-sm-2 control-label" style="text-align:left;">角色名称</label>
						    	<div class="col-sm-8">
								      <input type="text" value="${sysRole.roleName}" name="roleName" id="roleName" class="form-control"/>
						    	</div>
							</div>
							<div class="form-group">
								<div class="col-sm-offset-5 col-sm-10">
									<a type="button" class="btn btn-sm btn-default" id="formReturn" href="<%=path%>/system/sysRole/queryPageList.do">返回</a>
   									<button type="button" class="btn btn-sm btn-primary" id="formSubmit" onclick ="javascript:$('#dailogForm').submit();">提交</button>
								</div>
 							</div>
						</form>
				</div>
			</div>
		</div>
	</div>
</body>
</html>